public class Test1 {
    public int aMethod(){
        int i = 0;
        //static int i = 0;
        //Java当中不允许定义局部的静态变量
        i++;
        return i;
    }
    public static void main(String args[]){
        Test1 test = new Test1();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }
}
